<?php if ($this->message):?>
<script>
$(function(){
    alert('<?php echo $this->message?>');
});
</script>
<?php endif?>

<div class="ui-widget" style="width:600px;margin:auto">
<div class="ui-widget-header ui-corner-top" style="padding:5px;">
<?php echo $this->translate('edit user profile')?></div>
<div class="ui-widget-content ui-corner-bottom">
<?php if ($this->form->getErrorMessages()):?>
 <div style="padding: 0pt 0.7em; width:300px; margin: 10px auto" class="ui-state-error ui-corner-all">
<?php foreach ($this->form->getErrorMessages() as $row):?>
<p><span style="float: left; margin-right: 0.3em; " class="ui-icon ui-icon-alert"></span>
 <strong>Error:</strong> <?php echo $row?>.</p>
<?php endforeach?>
</div>
<?php endif?>

<?php echo $this->form?>
</div>
</div>